if (drive != NULL) {
g_drive_poll_for_media (drive, NULL, drive_poll_for_media_cb, sidebar);
+ g_object_unref (drive);
}
- g_object_unref (drive);
}
static void
g_drive_start (drive, G_DRIVE_START_NONE, mount_op, NULL, drive_start_cb, sidebar);
g_object_unref (mount_op);
+ g_object_unref (drive);
}
- g_object_unref (drive);
}
static void
mount_op = get_unmount_operation (sidebar);
g_drive_stop (drive, G_MOUNT_UNMOUNT_NONE, mount_op, NULL, drive_stop_cb,
g_object_ref (sidebar));
+
g_object_unref (mount_op);
+ g_object_unref (drive);
}
- g_object_unref (drive);
}
static gboolean